import React from 'react'
import { Routes, Route } from "react-router-dom"

import Login from './components/Login'
import Main from './components/Main'

/* 
所有的路由配置都放在Rouutes组件中
*/

export default function App() {
  return (
    <div className='outer'>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="/main" element={<Main />} />
      </Routes>
    </div>
  )
}
